import { S } from '../../s';
import { IPSDEDebugParamLogic } from './ipsdedebug-param-logic';
import { IPSDELogic } from './ipsdelogic';
import { IPSDELogicParam } from './ipsdelogic-param';
import { PSDELogicNodeImpl } from './psdelogic-node-impl';

export class PSDEDebugParamLogicImpl
  extends PSDELogicNodeImpl
  implements IPSDEDebugParamLogic
{
  protected dstpsdelogicparam: IPSDELogicParam;
  getDstPSDELogicParam(): IPSDELogicParam | null {
    if (this.dstpsdelogicparam != null) return this.dstpsdelogicparam;
    const value = this.M.getDstPSDELogicParam;
    if (value == null) {
      return;
    }
    const ipsdelogic = this.getParentPSModelObject(S._200) as IPSDELogic;
    if (ipsdelogic != null) {
      this.dstpsdelogicparam = ipsdelogic.findPSDELogicParam(value);
    }
    return this.dstpsdelogicparam;
  }
  get cls(): string {
    return 'PSDEDebugParamLogicImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._3a9) return true;
    return super.instanceof(cls);
  }
}
